package org.example.mall.admin.service.manage;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.mall.admin.model.entity.manage.SysRelation;

import java.util.List;

/**
 * <p>
 * 系统全局关联表 服务类
 * </p>
 *
 * @author hzq
 * @since 2022-01-13
 */
public interface SysRelationService extends IService<SysRelation> {

    void addRelation(Integer fromId, Integer toId, String tbName);

    void addRelation(Integer fromId, List<Integer> toIds, String tbName);

    void editRelation(Integer fromId, Integer toId, String tbName);

    void editRelation(Integer fromId, List<Integer> toIds, String tbName);

    void delRelationFromId(Integer fromId, String tbName);

    void delRelationToId(Integer toId, String tbName);

    void hasTbName(String tbName);
}
